package pjwstk.jps.result;

/**
 * @author s9111_s10304
 *
 */
public class BinderResult implements IBinderResult
{
    private String name;
    private IAbstractQueryResult iaqrValue;
    
    public BinderResult(String aName, IAbstractQueryResult aValue) {
        name = aName;
        iaqrValue = aValue;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public IAbstractQueryResult getValue() {
        return iaqrValue;
    }
    
    @Override
    public String toString() {
    	return "binder(name=\"" + name + "\", value=\"" + iaqrValue.toString() + "\")";
    }
}